<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="__TMPL__/public/assets/js/flexible.js" ></script>
		<link rel="stylesheet" href="__TMPL__/public/assets/css/all_page.css" />
		<link rel="stylesheet" href="__TMPL__/public/assets/css/public.css" />
		<style>
			
		</style>
	</head>
	<body>
		
		<div class="dynamic regime">
			<div class="head" style="background: url({:cmf_get_image_url($img['img'])}) no-repeat;background-size: 100% 100%;">
				<p>公告动态</p>
			</div>
			
			<div class="reCondition">
				<foreach name="sort" item='v'>
				<p <if condition="$sel eq $v['id']">class="sel"</if>>{$v['name']}</p>
				</foreach>
			</div>
			
			<div class="dyCn">
				<if condition="$sel eq 1">
				<div class="dyAll">
					<else/>
					<div class="dyAll divHide">
					</if>
					<volist name="data1" id='v'>
					<a href="{:url('detail',array('id'=>$v['id']))}">
					<div class="dyList">
						<img class="dyL" src="__TMPL__/public/assets/images/sb1.png" />
						<div class="dyR">
							<div class="drTop div_float">
								<p class="drTil eli_one">{$v['title']}</p>
								<p class="drTime">{:date('Y-m-d',$v['time'])}</p>
							</div>
							<div class="dyMsg">
								<p class="eli_two">{$v['intro']}</p>
							</div>
						</div>
					</div>
					</a>
					</volist>
					<!-- <div class="dyList">
						<img class="dyL" src="__TMPL__/public/assets/images/sb1.png" />
						<div class="dyR">
							<div class="drTop div_float">
								<p class="drTil eli_one">建成“1+10+N”党群服务体系</p>
								<p class="drTime">2018-06-15</p>
							</div>
							<div class="dyMsg">
								<p class="eli_two">形成普惠成效的同时也埋下很多风险隐患，各类乱象层出不穷，部分企业甚至以金融创新之...</p>
							</div>
						</div>
					</div> -->
				</div>
				<if condition="$sel eq 2">
				<div class="dyAll">
					<else/>
					<div class="dyAll divHide">
					</if>
					<volist name="data2" id='v'>
					<a href="{:url('detail',array('id'=>$v['id']))}">
					<div class="dyList">
						<img class="dyL" src="__TMPL__/public/assets/images/sb1.png" />
						<div class="dyR">
							<div class="drTop div_float">
								<p class="drTil eli_one">{$v['title']}</p>
								<p class="drTime">{:date('Y-m-d',$v['time'])}</p>
							</div>
							<div class="dyMsg">
								<p class="eli_two">{$v['intro']}</p>
							</div>
						</div>
					</div>
					</a>
					</volist>
				</div>
			</div>
			
			<!--公共底部-->
			<include file="public@footer"/>
			
		</div>
		
	
	<script type="text/javascript" src="__TMPL__/public/assets/js/jquery-1.8.3.js" ></script>
	<script type="text/javascript" src="__TMPL__/public/assets/js/js.js" ></script>
	<script>
		$(function(){
			
			$('.reCondition>p').on('click',function(){
				$(this).addClass('sel').siblings().removeClass('sel');
				var sIndex = $(this).index();
				$.each($('.dyCn>div'), function(index,item) {
					if(index == sIndex){
						$(this).removeClass('divHide');
					}else{
						$(this).addClass('divHide');
					}
				});
			});
			
		});
	</script>
	</body>
</html>
